package com.example.microinvestcommon.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserOrderVo {
    private Long orderId;
    private Long userId;
    private String stockSymbol;
    private BigDecimal orderAmount;     // 单股价格
    private BigDecimal orderAllAmount;  // 订单总金额
    private Integer stockQuantity;      // 购买数量
    private String buySell;
    private String status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createdAt;
}
